﻿<%@ Page Language="C#" MasterPageFile="~/aspnet/admin/MasterPage.master" AutoEventWireup="true" CodeFile="CX_Column_Parames.aspx.cs" Inherits="aspnet_admin_bock_Column_CX_Column_Parames" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <table align="center" border="0" cellpadding="2" cellspacing="1" class="border"
        height="116" width="100%">
        <tr align="center">
            <td class="topbg" colspan="2" height="30">
                <strong>栏目菜单生成器</strong></td>
        </tr>
        <tr>
            <td class="tdbg" style="height: 27px" width="223">
                栏目英文名*:</td>
            <td class="tdbg" style="height: 27px" width="560">
               
                <input id="col" type="text"  name="col" value="EngLishName"/>
          </td>
        </tr>
        <tr>
            <td class="tdbg" style="height: 27px" width="223">
                是不是显示小图片输入框:</td>
            <td class="tdbg" style="height: 27px" width="560">
                <input id="Checkbox1"  value="&Pic=true" type="checkbox"  name="Checkbox1"/></td>
        </tr>
        <tr>
            <td class="tdbg" style="height: 27px" width="223">
                是不是在页面中显示内容输入框:</td>
            <td class="tdbg" style="height: 27px" width="560">
                <input id="Checkbox2"  value="&Cont=true" type="checkbox" name="Checkbox2"/></td>
        </tr>
        <tr>
            <td class="tdbg" style="height: 27px">
                是不是显示说明输入框:</td>
            <td class="tdbg" style="height: 27px">
                <label>
                    <input id="Checkbox3" type="checkbox" value="&Expiler=true" name="Checkbox3"/></label></td>
        </tr>
        <tr>
            <td class="tdbg" style="height: 27px">
                是不是显示生成文件名输入框:</td>
            <td class="tdbg" style="height: 27px">
                <input id="Checkbox4" type="checkbox" value="&Crtfile=true"  name="Checkbox4"/></td>
        </tr>
        <tr>
            <td class="tdbg" height="27">
                是不是显示排序输入框:</td>
            <td class="tdbg" height="27">
                <input id="Checkbox5" type="checkbox"  value="&Sort=true"  name="Checkbox5"/></td>
        </tr>
        <tr>
            <td class="tdbg" height="27">
                是不是显示显示类型输入框:</td>
            <td class="tdbg" height="27">
                <input id="Checkbox7" type="checkbox"  value="&ShowLx=true"  name="Checkbox7" /></td>
        </tr>
        <tr>
            <td class="tdbg" height="27">
                是不是显示链接地址输入框:</td>
            <td class="tdbg" height="27">
                <input id="Checkbox6" type="checkbox" value="&linkxx=true"  name="Checkbox6"/></td>
        </tr>
        <tr>
            <td class="tdbg" height="27">
                生成代码:</td>
            <td class="tdbg" height="27">
                <input id="Text1" style="width: 700px" type="text" name="Text1"/></td>
        </tr>
        <tr>
            <td class="tdbg" colspan="2" height="27">
                <center>
                    <input id="Button1" type="button" value="生成调用参数"  onclick="crt()"/>&nbsp;</center>
            </td>
        </tr>
    </table>
    <br />
    <br />
    <br />
    <table align="center" border="0" cellpadding="2" cellspacing="1" class="border"
        height="116" width="100%">
        <tr align="center">
            <td class="topbg" colspan="2" height="30">
                <strong>栏目显示查看权限</strong></td>
        </tr>
        <tr>
            <td class="tdbg" style="height: 27px" width="223">
                栏目显示页面:</td>
          <td class="tdbg" style="height: 27px" width="560">
              <input id="ColumnPage" type="text"  name="ColumnPage"/>
                <label>
                <select name="selectxxx" onchange="document.getElementById('ColumnPage').value=this.value" id="selectxxx">
                  <option value="CX_Column_AddNew.aspx">栏目添加页面</option>
                  <option value="CX_Column_Edit.aspx" selected="selected">栏目修改页面</option>
                  <option value="CX_Column_Show.aspx">栏目查看页面</option>
                </select>
                </label></td>
        </tr>
        <tr>
          <td class="tdbg" style="height: 27px">是不是显示栏目分类:</td>
          <td class="tdbg" style="height: 27px"><label>
            <input name="ColumnFenlei" type="checkbox" id="ColumnFenlei" value="&amp;ColumnFenlei=true" />
          </label></td>
        </tr>
        <tr>
          <td class="tdbg" style="height: 27px">显示栏目分类</td>
          <td class="tdbg" style="height: 27px">一般栏目
            <label>
            <input name="ColumnLV0" type="checkbox" id="ColumnLV0" value="&amp;ColumnLV0=true" checked="checked" />
            <br />
            新闻栏目 
            <input name="ColumnLV1" type="checkbox" id="ColumnLV1" value="&amp;ColumnLV1=true" checked="checked" />
            <br />
            系统栏目
            <input name="ColumnLV2" type="checkbox" id="ColumnLV2" value="&amp;ColumnLV2=true" />
            <br />
            其它栏目
            <input name="ColumnLV3" type="checkbox" id="ColumnLV3" value="&amp;ColumnLV3=true" />
          </label></td>
        </tr>
        <tr>
          <td class="tdbg" style="height: 27px">显示栏目目录:</td>
          <td class="tdbg" style="height: 27px"><label>
            <input name="Columndir" type="checkbox" id="Columndir" value="&amp;Columndir=true" />
          </label></td>
        </tr>
        <tr>
            <td class="tdbg" style="height: 27px" width="223">
                是不是显示小图片输入框:</td>
            <td class="tdbg" style="height: 27px" width="560">
                <input id="ColumnPic"  value="&amp;ColumnPic=true" type="checkbox"  name="ColumnPic"/></td>
        </tr>
        <tr>
            <td class="tdbg" style="height: 27px">
                显示栏目说明输入框:</td>
            <td class="tdbg" style="height: 27px">
                <label>
                    <input id="ColumnExpiler" type="checkbox" value="&amp;ColumnExpiler=true" name="ColumnExpiler"/></label></td>
        </tr>
        <tr>
          <td class="tdbg" height="27">显示栏目模板地址：</td>
          <td class="tdbg" height="27"><input name="ColumnItemlitate" type="checkbox" id="ColumnItemlitate" value="&amp;ColumnItemlitate=true"/></td>
        </tr>
        <tr>
          <td class="tdbg" height="27">栏目模板参数：</td>
          <td class="tdbg" height="27"><input id="ColumnItemparame" type="checkbox" value="&amp;ColumnItemparame=true" name="ColumnItemparame"/></td>
        </tr>
        <tr>
            <td class="tdbg" height="27">
                是不是显示排序输入框:</td>
            <td class="tdbg" height="27">
                <input id="ColumnSort" type="checkbox"  value="&amp;ColumnSort=true"  name="ColumnSort"/></td>
        </tr>
        <tr>
            <td class="tdbg" height="27">
                生成代码:</td>
            <td class="tdbg" height="27">
                <input id="Column" style="width: 700px" type="text" name="Column"/></td>
        </tr>
        <tr>
            <td class="tdbg" colspan="2" height="27">
                <center>
                    <input id="Button2" type="button" value="生成调用参数"  onclick="Columncer()"/>&nbsp;</center>            </td>
        </tr>
    </table>
    <br />
    <br />
    <table align="center" border="0" cellpadding="2" cellspacing="1" class="border"
        height="116" width="100%">
        <tr align="center">
            <td class="topbg" colspan="2" height="30">
                <strong>新闻分类显示查看权限</strong></td>
        </tr>
        <tr>
            <td class="tdbg" style="height: 27px" width="223">
                新闻分类显示页面</td>
            <td class="tdbg" style="height: 27px" width="560">
                <input id="NewsPage" type="text"  name="NewsPage"/>
                <select name="select" onchange="document.getElementById('NewsPage').value=this.value" id="selectxx">
                  <option value="CX_News_ProbjectAddNew.aspx">新闻添加页面</option>
                  <option value="CX_News_Probject_Edit.aspx" selected="selected">新闻修改页面</option>
                  <option value="CX_News_Probject_Show.aspx">新闻查看页面</option>
                </select></td>
        </tr>
        <tr>
            <td class="tdbg" style="height: 27px">显示新闻目录:</td>
            <td class="tdbg" style="height: 27px">
                <input id="Newsdir" type="checkbox" value="&amp;Newsdir=true"  name="Newsdir"/></td>
        </tr>
        <tr>
            <td class="tdbg" height="27">
                显示新闻模板地址:</td>
            <td class="tdbg" height="27">
                <input id="Newsitemp" type="checkbox"  value="&amp;Newsitemp=true"  name="Newsitemp"/></td>
        </tr>
        <tr>
            <td class="tdbg" height="27">
                显示新闻模板参数:</td>
            <td class="tdbg" height="27">
                <input id="Newsparame" type="checkbox"  value="&amp;Newsparame=true"  name="Newsparame" /></td>
        </tr>
        <tr>
            <td class="tdbg" height="27">显示生成文件名:</td>
            <td class="tdbg" height="27">
                <input id="Newscrtfilename" type="checkbox" value="&amp;Newscrtfilename=true"  name="Newscrtfilename"/></td>
        </tr>
        <tr>
            <td class="tdbg" height="27">
                生成代码:</td>
            <td class="tdbg" height="27">
                <input id="News" style="width: 700px" type="text" name="News"/></td>
        </tr>
        <tr>
            <td class="tdbg" colspan="2" height="27">
                <center>
                    <input id="Button3" type="button" value="生成调用参数"  onclick="Newscrt()"/>&nbsp;</center>            </td>
        </tr>
    </table>
    <br />

<script language="javascript" type="text/javascript">
//生成调用参数函数 生成栏目显示菜单
function  crt()
{
    var col =    document.getElementById("col").value ;
    var Pic =    document.getElementById("Checkbox1").value ;
    var Cont =    document.getElementById("Checkbox2").value ; 
    
    var Expiler =    document.getElementById("Checkbox3").value ;
    var Crtfile =    document.getElementById("Checkbox4").value ;
    var Sort =    document.getElementById("Checkbox5").value ;
    var linkxx =    document.getElementById("Checkbox6").value ;
    var ShowLx = document.getElementById("Checkbox7").value;
    
    if(document.getElementById("Checkbox1").checked==false)
    {
        Pic="";
    }
    
    if(document.getElementById("Checkbox2").checked==false)
    {
        Cont="";
    }
        if(document.getElementById("Checkbox3").checked==false)
    {
        Expiler="";
    }
        if(document.getElementById("Checkbox4").checked==false)
    {
        Crtfile="";
    }
        if(document.getElementById("Checkbox5").checked==false)
    {
        Sort="";
    }
        if(document.getElementById("Checkbox6").checked==false)
    {
        linkxx="";
    }
        if(document.getElementById("Checkbox7").checked==false)
    {
        ShowLx="";
    }    
    
    document.getElementById("Text1").value="?Tab="+col+Pic+Cont+Expiler+Crtfile+Sort+linkxx+ShowLx;
}

//显示新闻查看权限
function Newscrt()
{
	var NewsPage =    document.getElementById("selectxx").value ;
	
	var Newsdir =    document.getElementById("Newsdir").value ;
	if(document.getElementById("Newsdir").checked==false)
    {
        Newsdir="";
    }
	
	
	
	var Newsitemp =    document.getElementById("Newsitemp").value ;
	if(document.getElementById("Newsitemp").checked==false)
    {
        Newsitemp="";
    }
	
	var Newsparame =    document.getElementById("Newsparame").value ;
	if(document.getElementById("Newsparame").checked==false)
    {
        Newsparame="";
    }
	
	var Newscrtfilename =    document.getElementById("Newscrtfilename").value ;
	if(document.getElementById("Newsparame").checked==false)
    {
        Newscrtfilename="";
    }
	
	
	document.getElementById("News").value=NewsPage+"?"+Newsdir+Newsitemp+Newsparame+Newscrtfilename;
}

//栏目显示查看权限
function  Columncer()
{
    var ColumnPage =    document.getElementById("ColumnPage").value ;
	
	var ColumnFenlei =    document.getElementById("ColumnFenlei").value ;
	
	var ColumnLV0 =    document.getElementById("ColumnLV0").value ;
	
	var ColumnLV1 =    document.getElementById("ColumnLV1").value ;
	
	var ColumnLV2 =    document.getElementById("ColumnLV2").value ;
	
	var ColumnLV3 =    document.getElementById("ColumnLV3").value ;
	
	var Columndir =    document.getElementById("Columndir").value ;
	
	var ColumnPic =    document.getElementById("ColumnPic").value ;
	
	var ColumnExpiler =    document.getElementById("ColumnExpiler").value ;
	
	var ColumnItemlitate =    document.getElementById("ColumnItemlitate").value ;
	
	
	
	var ColumnItemparame =    document.getElementById("ColumnItemparame").value ;
	
	var ColumnSort =    document.getElementById("ColumnSort").value ;
	
	
	if(document.getElementById("ColumnSort").checked==false)
    {
        ColumnSort="";
    }
	
	if(document.getElementById("ColumnItemparame").checked==false)
    {
        ColumnItemparame="";
    }
	
	if(document.getElementById("ColumnItemlitate").checked==false)
    {
        ColumnItemlitate="";
    }
	
	
	if(document.getElementById("ColumnExpiler").checked==false)
    {
        ColumnExpiler="";
    }
	if(document.getElementById("ColumnPic").checked==false)
    {
        ColumnPic="";
    }
	if(document.getElementById("ColumnPage").checked==false)
    {
        ColumnPage="";
    }
	
	if(document.getElementById("ColumnFenlei").checked==false)
    {
        ColumnFenlei="";
    }
	
	if(document.getElementById("ColumnLV0").checked==false)
    {
        ColumnLV0="";
    }
	if(document.getElementById("ColumnLV1").checked==false)
    {
        ColumnLV1="";
    }
	if(document.getElementById("ColumnLV2").checked==false)
    {
        ColumnLV2="";
    }
	if(document.getElementById("ColumnLV3").checked==false)
    {
        ColumnLV3="";
    }
	
	if(document.getElementById("Columndir").checked==false)
    {
        Columndir="";
    }
	
	document.getElementById("Column").value=ColumnPage+"?"+ColumnFenlei+ColumnLV0+ColumnLV1+ColumnLV2+ColumnLV3+Columndir+ColumnPic+ColumnExpiler+ColumnItemlitate+ColumnItemparame+ColumnSort
}

</script>

</asp:Content>

